package com.zlx.xBiaoShop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description goods实体类
 * @author admin
 * @date 2020-12-05 17:52:12
 */
@Entity
@Table(name="goods")
public class Goods implements Serializable{

	@Id
	private Integer id;//主键ID

	private String goodName; //商品名字
	private String describe; //商品描述
	private Double price; //商品单价
	private Integer look; //商品浏览数
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private java.util.Date publishDate; //商品发布时间
	private Integer stock; //库存
	private Integer storeId; //商家id
	private String salesVolumes; //销售数量
	private Integer typeId; //商品类型id
	private String pics; //详情图片地址组
	private String pic; //商品头像
	private String storeName;	//商店名字

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer aValue) {
		this.id = aValue;
	}
	
	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	public String getGoodName() {
		return this.goodName;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public String getDescribe() {
		return this.describe;
	}
	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getPrice() {
		return this.price;
	}
	public void setLook(Integer look) {
		this.look = look;
	}

	public Integer getLook() {
		return this.look;
	}
	public void setPublishDate(java.util.Date publishDate) {
		this.publishDate = publishDate;
	}

	public java.util.Date getPublishDate() {
		return this.publishDate;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getStock() {
		return this.stock;
	}
	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public Integer getStoreId() {
		return this.storeId;
	}
	public void setSalesVolumes(String salesVolumes) {
		this.salesVolumes = salesVolumes;
	}

	public String getSalesVolumes() {
		return this.salesVolumes;
	}
	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public Integer getTypeId() {
		return this.typeId;
	}
	public void setPics(String pics) {
		this.pics = pics;
	}

	public String getPics() {
		return this.pics;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getPic() {
		return this.pic;
	}

}



